#!/bin/sh

temp=/tmp/libmxf_test_$$.mxf

./test_file $temp && \
    ./test_file stdin <$temp && \
    cat $temp | ./test_file stdin && \
    ./test_file stdout >$temp && \
    ./test_file stdout | ./test_file stdin
res=$?

rm -f $temp

exit $res
